.ajax-test-box{
    padding-top: 0.3rem;
}
/* 统一输入控件样式 */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  margin-bottom: 0.32rem;
}

.input-field, .textarea-field {
  padding: 0.16rem 0.24rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.12rem;
  font-size: 0.28rem;
  line-height: 1.5;
  transition: border-color 0.3s ease;
}
 textarea{
    height: 1.5rem;
}
/* 交互状态效果 */
.input-field:focus, .textarea-field:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.1);
  outline: none;
}

/* 按钮样式优化 */
.submit-btn {
  padding: 0.12rem 0.24rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 0.12rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 0.28rem;
  line-height: 0.5rem;
}

.submit-btn:hover {
  background: #357abd;
}

.submit-btn:disabled {
  background: #a0c1e8;
  cursor: not-allowed;
}

/* 加载动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  display: inline-block;
  width: 0.16rem;
  height: 0.16rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

/* 结果展示区域 */
.result-box {
  padding: 0.24rem;
  background: #f8f9fa;
  border-radius: 0.12rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  
}
.result-box  h3 {
 font-size: 0.28rem;
 line-height: 1.5;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.24rem;
  line-height: 1.4;
  color: #666;
}

.error-msg {
  color: #e74c3c;
  padding: 0.16rem;
  background: #fee;
  border-radius: 0.08rem;
  border: 1px solid #ffd1d1;
}